﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Spencen.Mobile.UI.Animations
{
    public class FloatAnimation : Animation<float>
    {
        public FloatAnimation( object target, string propertyName, TimeSpan duration )
            : base( target, propertyName, duration )
        {
        }

        public override float CurrentValue
        {
            get { return OriginalValue + ( FinalValue - OriginalValue ) * AdjustedPercentageComplete; }
        }
    }
}
